﻿@page "/"
@*//这里注入MessageService*@
@inject IMessageService _message;

<PageTitle>Home</PageTitle>

<h1>Hello, world!</h1>

Welcome to your new app.

<Button Type="primary" OnClick="OnHelloClick">Hello World!</Button>

@code {
    //按钮单击方法
    private void OnHelloClick()
    {
        //提示信息
        _message.Info("Hello AntDesign Blazor!");
    }
}